import type { Route } from "../index.type";

import { createNameComponent } from "../createNode";

const route: Route[] = [
    {
        path: "/",
        redirect: "/stick/seller",
        meta: { title: "定制管理", icon: "iconfont icon-xitong" },
        children: [
            {
                path: "/stick/seller",
                component: createNameComponent(() => import("@/views/stick/seller/index.vue")),
                meta: {
                    title: "经销商管理",
                    icon: "iconfont icon-user",
                    cache: true,
                    roles: ["admin", "editor"]
                },
                children: []
            },
            {
                path: "/stick/number",
                component: createNameComponent(() => import("@/views/stick/number/index.vue")),
                meta: {
                    title: "杆号管理",
                    icon: "iconfont icon-shuliang",
                    cache: true,
                    roles: ["admin", "editor"]
                },
                children: []
            },
            {
                path: "/stick/order",
                component: createNameComponent(() => import("@/views/stick/order.vue")),
                meta: {
                    title: "订单管理",
                    icon: "iconfont icon-yemian",
                    cache: true,
                    roles: ["admin", "editor"]
                },
                children: []
            }
        ],
        alwayShow: true
    }
];

export default route;
